#include"Any_server.hpp"
#include<cstring>

int main()
{
    {
        int a=10;
        double b=20.2;
        std::string s="wang";

        Any ay(a);
        Any by(b);
        Any sy(s);

        int* ay_c=ay.get<int>();

        std::string* sy_c=sy.get<std::string>();

        std::cout<<*ay_c<<std::endl;
        std::cout<<*sy_c<<std::endl;
    }

    int a1=100;
    Any a1y;
    a1y=a1;

    double b1=3.14;
    Any b1y;
    b1y=b1;

    std::cout<<"a1y: "<<*(a1y.get<int>())<<std::endl;
    std::cout<<"b1y: "<<*(b1y.get<double>())<<std::endl;

    a1y.swpa(b1y);


    std::cout<<"a1y: "<<*(a1y.get<double>())<<std::endl;
    std::cout<<"b1y: "<<*(b1y.get<int>())<<std::endl;

    return 0;
}